﻿using CP.DBService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CP.Repositories.GPM
{
    public static class SequenceGenerator
    {
        public static int GetSeqNextValue(string seqname)
        {
            DBHelper db = DBHelper.GPMCreateInstance();
            int ret = db.ExecuteScalar<int>(string.Format(@"select {0}.NextVal from dual", seqname));
            return ret;
        }
    }
}
